//Why should we use delete? 
//	-	de giai phong bo nho da duoc cap phap
//	When we use delete? 
//	-	 khi ta lam viec voi con tro
//	Difference between delete and delete[].
//	-	su khac biet delete la ta delete mot phan tu, con delete[] la nhieu phan tu
//  Write a demo 

#include <iostream>

using namespace std;

int main()
{
	int *head = new int;
	int *ptr = new int[10];
	*head = 5;
	*ptr = *head;
	
	delete head;
	delete []ptr;
	
	system("pause");
}